From: Stefano Facchini Date: Fri, 1 Feb 2013 18:33:20 +0000 (+0100) Subject: Fix typo in gnome-shell-extension-prefs X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4976 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9bcce4f2713ae6bad2d7c1020f1ea42d588a20c7;p=gnome-shell.git Fix typo in gnome-shell-extension-prefs Environment variables should be checked for zero length, instead of non-zero. This prevented the script to run correctly in a jhbuild shell for example. https://bugzilla.gnome.org/show_bug.cgi?id=693031 --- diff --git a/src/gnome-shell-extension-prefs.in b/src/gnome-shell-extension-prefs.in index acc2cb171..a1690a62f 100644 --- a/src/gnome-shell-extension-prefs.in +++ b/src/gnome-shell-extension-prefs.in @@ -1,12 +1,12 @@ #!/bin/sh -if [ -n "$GI_TYPELIB_PATH" ]; then +if [ -z "$GI_TYPELIB_PATH" ]; then export GI_TYPELIB_PATH=@pkglibdir@ else export GI_TYPELIB_PATH=@pkglibdir@:$GI_TYPELIB_PATH fi -if [ -n "$LD_LIBRARY_PATH" ] ; then +if [ -z "$LD_LIBRARY_PATH" ] ; then export LD_LIBRARY_PATH=@pkglibdir@ else export LD_LIBRARY_PATH=@pkglibdir@:$LD_LIBRARY_PATH